package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: jie.zhao
 * @create: 2021/07/31 19:39
 */
@FeignClient(value = "lagou-service-code")
@RequestMapping("/api/code")
@Component
public interface LaGouServiceCodeClient {

    @GetMapping("/validate/{email}/{code}")
    public Integer validate(@PathVariable String email, @PathVariable String code);
}
